<template>
    <div class="button-border" :style="{ height: myHeight, width: myWidth }">
        <div class="content-box">
            <div class="content">{{ content }}</div>
                <div class="img-box" v-if="hadIcon">
                    <img src="../../assets/img/arrow-angle-right.png">
                </div>
        </div>
    </div>
</template>

<script>
export default {
    name: "PublicButton",
    data() {
        return {
            // width: this.myWidth,
            // height: this.myHeight
        }
    },
    props: ["myWidth", "myHeight", "content", "hadIcon"]
}
</script>

<style scoped>
.button-border {
    display: flex;
    border-radius: 6px;
    background-color: rgb(12, 13, 13);
}

.content-box {
    display: flex;
    height: 24px;
    margin: auto;
    flex-direction: row;
    justify-items: center;
    align-items: center;
}


.content {
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
    /* padding-top: 10px; */
    /* margin: auto; */
    color: rgb(255, 255, 255);
}


.img-box {
    width: 24px;
    height: 24px;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
</style>